package com.example.demo.word.excetption;

public class WebBaseException extends RuntimeException{

    /** 错误说明 */
    private final String description;
    /** 错误编号 */
    private final String code;

    public WebBaseException(String code,String description){
        super(description);
        this.code = code;
        this.description = description;
    }

    public WebBaseException(String code,String description,String message){
        super(message);
        this.code = code;
        this.description = description;
    }

    public final String getDescription() {
        return description;
    }

    public final String getCode() {
        return code;
    }

}
